#! python
# -*- coding:utf-8 -*-

'''This module will imort directry which has test target source for unittest.

If you separate source directry and test directry,
you must import source directry.

For example, following::

   PROJECT_HOME
   |
   +- src/ -- spam.py
   |-
   +- tests/ -- test_spam.py

To test, test_spam must import ../src/spam.py directory.
But this statement is wrong.
So this module will add source directory to search path.
'''


import sys
import os

PROJECT_HOME = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), ".." + os.sep)))
SOURCE_PATH = PROJECT_HOME + os.sep + 'src'

sys.path.insert(0, SOURCE_PATH)
sys.path.insert(0, PROJECT_HOME)

